package com.lex.jfb;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabWidget;

import com.lex.jfb.R;

public class BiaoQianYeActivity extends Activity {
    private TabHost tabHost;
    private TabWidget tabWidget;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.biaoqianye);
        findview();
        initview();
    }
    private void findview(){
        tabHost= (TabHost) findViewById(android.R.id.tabhost);
        tabHost.setup();
        tabWidget=tabHost.getTabWidget();
        tabHost.addTab(tabHost.newTabSpec("one").setContent(R.id.v1).setIndicator("可用"));
        tabHost.addTab(tabHost.newTabSpec("two").setContent(R.id.v2).setIndicator("失效"));
    }
    private void initview() {
    }
}